package o;

import android.content.Context;
import com.huawei.appgallery.datastorage.database.AbsDataDAO;
import com.huawei.appgallery.packagemanager.api.bean.ManagerTask;
import com.huawei.appgallery.packagemanager.impl.storage.PmDataBase;
import com.huawei.appgallery.packagemanager.impl.uninstallapk.bean.UninstallApkTask;
import java.util.List;

public class cqa extends AbsDataDAO {
    private static cqa ˊ = null;
    private static final Object ˋ = new Object();

    public static cqa ˏ(Context context) {
        cqa o_cqa;
        synchronized (ˋ) {
            if (ˊ == null) {
                ˊ = new cqa(context);
            }
            o_cqa = ˊ;
        }
        return o_cqa;
    }

    private cqa(Context context) {
        super(context, PmDataBase.class, UninstallApkTask.class);
    }

    public List<UninstallApkTask> ˊ() {
        return this.ˏ.ˏ(UninstallApkTask.class, "taskIndex ASC");
    }

    public void ˎ(ManagerTask managerTask) {
        this.ˏ.ˊ((blw) managerTask);
    }

    public void ˋ(String str) {
        this.ˏ.ˎ("packageName=?", new String[]{str});
    }

    public void ˎ() {
        this.ˏ.ˎ(null, null);
    }
}
